-- utilities.lua

function drawBoundingBox( shape )
   love.graphics.setColor( 0, 0, 255 )
   love.graphics.polygon( "line", shape:getPoints() )
end

function drawBoundingCircle( shape )
   local x1, y1, x2, y2, x3, y3, x4, y4 = shape:getBoundingBox()
   local x_min = math.min( x1, x2, x3, x4 )
   local y_min = math.min( y1, y2, y3, y4 )
   local radius = shape:getRadius()

   love.graphics.setColor( 0, 0, 255 )
   love.graphics.circle( "line", x_min + radius, y_min + radius, radius )
end
